<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>修改账号页面</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link th:href="@{/css/signin.css}" rel="stylesheet">
    <style type="text/css">
        body{
            height: auto;
        }
    </style>
</head>

<body class="text-center"  >
<link rel="icon" type="image/x-icon" href="favicon.ico" >

<form class="form-signin" th:action="@{/user/update}" th:method="post">
    <img class="mb-4" th:src="@{/img/bootstrap-solid.svg}" alt="" width="72" height="72">
    <h1 class="h3 mb-3 font-weight-normal" th:text="#{login.update}">Please sign in</h1>
    <font color="red" th:text="${updateMes}"></font>

    <label class="sr-only" >[[#{login.name}]]</label>
    <input name="name" type="text"  class="form-control" th:value="${session.nowUser}" readonly="readonly" autofocus="" >

    <label class="sr-only" >[[#{login.phone}]]</label>
    <input name="phone" type="tel"  class="form-control" placeholder="电话|tel" required="required" autofocus="" >

    <label class="sr-only">[[#{login.password}]]</label>
    <input name="password" type="password" class="form-control" placeholder="密码|password" required="required" >

    <button class="btn btn-lg btn-primary btn-block" type="submit" th:text="提交submit"></button>

    <p class="mt-5 mb-3 text-muted">© 2021-2022</p>
</form>
</body>
</html>